/**
 * @author Evgeny Sorokin
 */
Ext.define('USocial.view.InviteFriendsList',{
	extend : 'Ext.dataview.List',
	
	xtype : 'inviteFriendsList',
	id : 'inviteFriendsList',
	
	beforeInitialize : function(){
		this.callParent(arguments);
		
		this.setInfinite(true);
		this.setStore(Ext.getStore('FriendsStore'));
		this.setItemTpl('<div class="item">'+
							'<img src="{photo_100}" />'+
							'<span class="text">{first_name} {last_name}</span>'+
		  				'</div>');
		this.setItemHeight(100);
		this.setUseSimpleItems(true);
		this.setScrollToTopOnRefresh(false);
		this.setMode('MULTI');
		this.setStriped(true);
		//this.setPlugins([{ xclass: 'Ext.plugin.ListPaging', autoPaging : true}]);
	}
});